package server;

abstract class ChatFormat
{
	protected String cmd = null;
	protected String msg = null;

	public ChatFormat(String line){
		String[] names = line.split(" ");
		cmd = names[0].substring(1);
		if( names.length >1 )
		msg = names[1];
		else
		msg = "";
		for(int i=2;i< names.length;i++)
		msg = msg.concat(" "+names[i]);
	}
	public abstract void execute(KKMultiServerThread server);
}
